
use "\\ead02\ead_uquam\Localization\NAICS6_panel\cdf_rhs", clear

*Figure 2: left-hand-side graph

preserve 
collapse (mean) export_tot import_tot l_idist_n3 l_odist_n3 l_idist_n5 l_odist_n5 av_klems l_idist_n7 l_odist_n7 l_idist_n10 l_odist_n10 l_idist_n3i l_odist_n3i l_idist_n5i l_odist_n5i l_idist_n7i l_odist_n7i l_idist_n10i l_odist_n10i, by(year)
twoway (line import_tot export_tot year, lcolor(black))
graph save "Z:\Localization\results\graph\graph_trade_year", replace
restore

use "\\ead02\ead_uquam\Localization\NAICS6_panel\restat_final.dta", clear

cd "\\ead02\ead_uquam\Localization\restat_results"

//Figure 2: right-hand-side graph (data for)

mean m_naftashr m_oecdshr m_asiashr, over(year)
